package feeinterface.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ulwx.tool.DbUtils;

import feeinterface.modeldb.ChannelIvr;

public class ChannelIvrDao {

	
	public static ChannelIvr getBy(Integer channelID) throws Exception {
		String sql = "select * from  ChannelIvr b  where b.ChannelID=? ";
		Map<Integer, Object> map = new HashMap<Integer, Object>();
		map.put(1, channelID);
		List<ChannelIvr> list = DbUtils
				.doQueryClass(null, ChannelIvr.class, sql, map);
		if(list.size()>0) return list.get(0);
		return null;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
